package io.kiki.sba.registry.store.jdbc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = MetaElectorConfigBean.PRE_FIX)
public class MetaElectorConfigBean implements MetaElectorConfig {

    public static final String PRE_FIX = "meta.server.elector";

    private long lockExpireDuration = 20 * 1000;

    @Override
    public long getLockExpireDuration() {
        return lockExpireDuration;
    }


    public void setLockExpireDuration(long lockExpireDuration) {
        this.lockExpireDuration = lockExpireDuration;
    }
}
